﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;

namespace tantrinh.Models
{
    public class ChiTietDanhMuc
    {
        public int ChiTietDanhMucID { get; set; }
        [Required(ErrorMessage = "Chưa chọn danh mục.")]
        [Display(Name = "Danh mục")]
        public int DanhMucID { get; set; }
        [Required(ErrorMessage = "Chưa nhập vào tên chi tiết danh mục.")]
        [Display(Name = "Chi tiết danh mục")]
        public string TenChiTietDanhMuc { get; set; }
        public bool TinhTrang { get; set; }

        public virtual DanhMuc DanhMuc { get; set; }

        public virtual ICollection<SanPham> SanPham { get; set; }
    }
}